package yxy.game.pm2.module.matchonline;

import yxy.game.pm2.bean.module.rank.PlayerRankModule;
import yxy.game.pm2.bean.module.rank.RankModule;

/**
 * @author ljb
 * @name WorldRankMatchOnline
 * @description 在线玩家匹配
 * @since 2022-10-13
 */
public class WorldRankMatchOnline extends RankModule {


    public WorldRankMatchOnline() {
        initInfo();
    }


    @Override
    public String rankName() {
        return PlayerRankModule.getAllRankNames().get(24);
    }

    @Override
    protected long valuePlastic(long value) {
        return value;
    }

    @Override
    protected long valueRestore(long score) {
        return score;
    }

    @Override
    protected String rankKey() {
        return String.format("MATCHONLINE:WORLD:%s", rankName());
    }

    static public WorldRankMatchOnline getRank() {
        return new WorldRankMatchOnline();
    }
}
